<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Contact extends MY_Controller {
	function __construct(){
		parent::__construct();
		$this->load->model('page_model');
		$this->load->model('article_model');
		$this->load->model('gallery_model');
		$this->load->model('coltypes_model');
	}
	
	//联络我们
	public function index(){
		$data['page']=$this->page_model->get_page($cid=8);
		$data['seo']=$this->db->get_where('columns',array('id'=>8))->row_array();//获取seo
		$this->load->view('contact',$data);
	}
	
	public function msg(){
		if(!empty($_POST)){
			$_POST['timeline']=time();
			$data['userinfo'] = $this->db->insert('feedback',$_POST);
			goto_message('提交成功','contact');
		}
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}